package com.charonmc.utils;

import org.bukkit.entity.Player;

public class TokenUtils {

    /**
     * 获取玩家Token
     * @param player 玩家
     * @return Token值
     */
    public static String getToken(Player player){
        return Md5Utils.code("&C|H|A|R|O|N|M|C&:"
                + "["
                + player.getAddress().getAddress().getHostAddress()
                + "]:["
                + player.getName()
                + "]:E@R@I@C@K@R@E@N");
    }
}
